package com.nidu.demo.user.mapper.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nidu.demo.base.BaseTenantDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户部门关联实体
 *
 * @author auto
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user_department")
public class UserDepartmentDO extends BaseTenantDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 部门ID
     */
    private Long deptId;

} 